DevJourney

Python/RegEx/Basics/String Stripping/strip()/1.py

text = '*P***ython***'
print(text.strip('*'))

# Output:
#####################
# P***ython
View on GitHub